package com.example.onlinemusicserver2024.controller;

import com.example.onlinemusicserver2024.common.R;
import com.example.onlinemusicserver2024.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BannerController {

    @Autowired
    BannerService bannerService;

    @GetMapping("/banner/getAllBanner")
    public R getAllBanner(){
        System.out.println("查询轮播图片");
        R result = bannerService.getAllBanner();
        return result;
    }
}
